package com.xm2.demo.system.order.service;

import com.xm2.demo.model.State;
import com.xm2.demo.model.StateRecord;
import com.xm2.demo.system.order.ov.OrderOv;
import com.xm2.demo.system.order.ov.OrderPage;
import com.xm2.demo.utils.Pagination;

import java.text.ParseException;
import java.util.List;

/**
 * @Author
 * @Date 2018/12/12 19:58
 * @Description
 */
public interface OrderService {
    Pagination findByOrderPagination(Pagination pagination);

    Pagination findByDatePagination(OrderPage orderPage) throws ParseException;

    Pagination findByOrderId(OrderPage orderPage);

    void addOrder(StateRecord stateRecord);

    void deleteOrder(Integer[] ids);

    List<State> findStatus(String stateArr);

    Pagination findByUsername(String username,Pagination pagination);

    void updateOrder(StateRecord stateRecord, String name, String phone) throws Exception;
}
